package com.fable.web.common.annotation;

import com.fable.web.page.P;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;

/**
 * 标识方法或类是否纳入被统计的范围
 * create by weishuai
 */
@Target({ TYPE, METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface Track {

    P.UrlEnum tag();

    boolean required() default true;
}
